* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --maraca-red: #A63946;
    --maraca-dark: #1a1a1a;
    --maraca-gray: #2d2d2d;
    --white: #ffffff;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--maraca-dark);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.language-switcher button {
    background: none;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--maraca-gray);
    transition: all 0.3s;
}

.language-switcher button.active {
    color: var(--maraca-red);
    border-bottom: 2px solid var(--maraca-red);
}

.language-switcher button:hover {
    color: var(--maraca-red);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--maraca-dark) 0%, var(--maraca-gray) 100%);
    color: var(--white);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--maraca-red);
    opacity: 0.1;
    transform: rotate(45deg);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.partner-badge {
    margin-bottom: 30px;
    animation: fadeInDown 1s;
}

.partner-badge img {
    max-width: 250px;
    height: auto;
    filter: brightness(1.1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    animation: fadeInUp 1.2s;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Partnership Section */
.about-partnership {
    padding: 80px 20px;
    background: var(--white);
}

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.partnership-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.partnership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.15);
}

.partnership-card h3 {
    color: var(--maraca-red);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.partnership-card p {
    color: var(--maraca-gray);
    line-height: 1.8;
}

/* Certifications Section */
.certifications {
    padding: 80px 20px;
    background: var(--maraca-dark);
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    opacity: 0.8;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.cert-card {
    background: var(--maraca-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid var(--maraca-red);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cert-card:hover {
    background: #363636;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(166, 57, 70, 0.3);
}

.cert-badge {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.cert-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--maraca-red);
    margin: 10px 0;
    line-height: 1;
}

.cert-name {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 600;
}

.cert-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* ========================================== */
/* CARROSSEL DE CERTIFICAÇÕES */
/* ========================================== */

.certifications .carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 20px;
    margin: 0 -20px;
}

.certifications .carousel-track {
    display: flex !important;
    gap: 30px;
    padding: 0;
    will-change: transform;
}

.certifications .carousel-track.infinite-scroll {
    /*animation: infiniteScrollCert 10s linear infinite;*/
}

.certifications .carousel-track.infinite-scroll:hover {
    /*animation-play-state: paused;*/
}
/*
@keyframes infiniteScrollCert {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}*/

.certifications .cert-card {
    flex: 0 0 250px;
    min-width: 250px;
}

.certifications .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    font-weight: bold;
    line-height: 1;
}

.certifications .carousel-nav:hover {
    background: var(--maraca-red);
    transform: translateY(-50%) scale(1.1);
}

.certifications .carousel-nav.prev {
    left: 0;
}

.certifications .carousel-nav.next {
    right: 0;
}

.certifications .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.certifications .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(166, 57, 70, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.certifications .carousel-dot:hover {
    background: rgba(166, 57, 70, 0.6);
}

.certifications .carousel-dot.active {
    background: var(--maraca-red);
    width: 30px;
    border-radius: 6px;
}

/* ========================================== */
/* CARROSSEL DE BENEFÍCIOS */
/* ========================================== */

.benefits .carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 20px;
    margin: 0 -20px;
}

.benefits .carousel-track {
    display: flex !important;
    gap: 35px;
    padding: 0;
    will-change: transform;
}

.benefits .carousel-track.infinite-scroll {
    /*animation: infiniteScrollBenefits 10s linear infinite;*/
}

.benefits .carousel-track.infinite-scroll:hover {
    /*animation-play-state: paused;*/
}
/*
@keyframes infiniteScrollBenefits {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}*/

.benefits .benefit-item {
    flex: 0 0 320px;
    min-width: 320px;
}

.benefits .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    font-weight: bold;
    line-height: 1;
}

.benefits .carousel-nav:hover {
    background: var(--maraca-red);
    transform: translateY(-50%) scale(1.1);
}

.benefits .carousel-nav.prev {
    left: 0;
}

.benefits .carousel-nav.next {
    right: 0;
}

.benefits .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.benefits .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(166, 57, 70, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.benefits .carousel-dot:hover {
    background: rgba(166, 57, 70, 0.6);
}

.benefits .carousel-dot.active {
    background: var(--maraca-red);
    width: 30px;
    border-radius: 6px;
}

/* ========================================== */
/* RESPONSIVO PARA CARROSSÉIS */
/* ========================================== */

@media (max-width: 1200px) {
    .certifications .cert-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .benefits .benefit-item {
        flex: 0 0 300px;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .certifications .cert-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .benefits .benefit-item {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .certifications .carousel-nav,
    .benefits .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}

/* Benefits Section */
.benefits {
    padding: 80px 20px;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-item {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(166, 57, 70, 0.15);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-item h3 {
    color: var(--maraca-red);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-item p {
    color: var(--maraca-gray);
    line-height: 1.7;
}

/* Language Content */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: var(--maraca-dark);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

footer a {
    color: var(--maraca-red);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Back to Site Button */
.back-to-site {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--maraca-red);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(196, 30, 58, 0.3);
}

.back-to-site:hover {
    background: var(--maraca-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

/* Social Icons */
.social-icons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-icon img {
    width: 28px;
    height: 28px;
}

/* Flip Cards */
.flip-cards-section {
    padding: 80px 20px;
    background: var(--white);
}

.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    perspective: 1000px;
}

.flip-card {
    background: transparent;
    height: 400px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.flip-card-front {
    background: var(--maraca-red);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.flip-card-front h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.flip-card-front p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.flip-indicator {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: auto;
}

.flip-card-back {
    background: var(--light-gray);
    color: var(--maraca-dark);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.flip-card-back h3 {
    color: var(--maraca-red);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 20px;
    flex-grow: 1;
}

.flip-card-cta {
    display: inline-block;
    padding: 12px 30px;
    background: var(--maraca-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: auto;
}

.flip-card-cta:hover {
    background: var(--maraca-dark);
    transform: translateY(-2px);
}

/* About Databricks Section */
.about-databricks {
    padding: 80px 20px;
    background: var(--maraca-dark);
    color: var(--white);
}

.databricks-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.databricks-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.databricks-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.databricks-link {
    display: inline-block;
    padding: 15px 40px;
    background: var(--maraca-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-top: 20px;
}

.databricks-link:hover {
    background: var(--white);
    color: var(--maraca-red);
    transform: translateY(-2px);
}

/* Platform Features */
.platform-features {
    padding: 80px 20px;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.feature-tag {
    background: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--maraca-dark);
    border-left: 4px solid var(--maraca-red);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.feature-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(166, 57, 70, 0.2);
    background: var(--maraca-red);
    color: var(--white);
}

/* WhatsApp CTA */
.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    font-size: 1.5rem;
}

/* CTA Section */
.cta {
    padding: 80px 20px;
    background: var(--maraca-red);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Botão Primary */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--maraca-red);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: var(--maraca-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .partnership-grid,
    .benefits-grid,
    .flip-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .cert-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
    }

    .back-to-site {
        top: 10px;
        left: 10px;
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    .social-icons {
        right: 10px;
        bottom: 10px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .flip-card {
        height: 450px;
    }
}

@media (max-width: 1400px) {
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
